FROM python:3.11
LABEL authors="cuiliang"
RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && echo 'Asia/Shanghai' >/etc/timezone && pip config set global.index-url https://mirrors.aliyun.com/pypi/simple/
ADD . /opt/logDemo/
RUN pip install -r /opt/logDemo/requirements.txt
WORKDIR /opt/logDemo/
CMD ["python","main.py"]